﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Windows.Forms;
using System.Threading;

namespace IWebApp2
{
    public partial class Progress : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
        
        //when calling methods using PageMethod, the method must be declared as WebMethod
        //PageMethods must be enabled in client code, and works together with ScriptManager
        [System.Web.Services.WebMethod]
        
        public static void Start()
        {
            try
            {
                //set value to web service method ProgressDone
                //set to true, meaning the progress bar has completed its task
                IWebApp2.ybWebSrvc.ProgressDone();
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message + "---" + ex.StackTrace);
            }
        }
   }
}
